package Dao;

import java.util.List;

import entity.Intnum;
import entity.Record;
import entity.Test;
import entity.Word;

public interface TestDao {
	/**
	 * Title: randomCommon
	 * Description:获取随机数
	 * @author 毛立新
	 * @return
	 * @throws Exception 
	 */
	public List<Integer> randomCommon(List<Integer> ls,String email) throws Exception  ;
	/**
	 * Title: getlist
	 * Description:获取已背单词wordID列表
	 * @author 毛立新
	 * @param email
	 * @return
	 * @throws Exception
	 */
	public List<Integer> getlist(String email) throws Exception;
	 /**
	* Title: showWord
	* Description:按ID获取单词
	* @author 毛立新
	*
    */
    public String showByWord(int id) throws Exception;

    /**
     * Title: Getscore
     * Description:获得前端分数
     * @author 毛立新
     * @param email
     * @return
     * @throws Exception
     */
    public Integer Getscore(String email) throws Exception;
	/**
	 * Title: updatescore
	 * Description:分数的上传
	 * @author 毛立新
	 * @param email
	 * @param score
	 * @return
	 * @throws Exception
	 */
	public void updatescore (String email,int score) throws Exception;
	/**
	 * Title: deletescore
	 * Description:删除记录
	 * @author 毛立新
	 * @param email
	 * @throws Exception
	 */
	public void deletescore(String email)throws Exception;
	/**
	 * Title: addtest
	 * Description:添加记录
	 * @author 毛立新
	 * @param email
	 * @param score
	 * @return
	 * @throws Exception
	 */
	public int addtest(String email,int score)throws Exception;
	 /**
     * Title: isaddorupdate
     * Description:判断是修改信息还是上传信息
     * @author 毛立新
     * @throws Exception
     */
    public boolean isaddorupdate(String email,int score)throws Exception;

}
